{% extends "base.html" %}

{%block cabecerahtml%}
	<script type="text/javascript" src="/media/js/cancelar.js"></script>
	<link rel="stylesheet" href="/media/css/basetemp.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="/media/css/tabla.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="/media/css/confirm.css" type="text/css" media="screen, projection"/>
	<script type='text/javascript' src='/media/js/modal.js'></script>
{%endblock%}

{% block contenido %}

	<table>
		<form name="new-user-form" action="/guardar_usuario_nuevo/" method="post">{% csrf_token %}
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.username.errors }}
			<td>
			</tr>
			<tr>
			<td>Username:</td> <td>{{form.username}}</td>
			</tr>
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.password1.errors }}
			<td>
			</tr>
			<tr>
			<td>Password:</td> <td>{{form.password1}}</td>
			</tr>
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.password2.errors }}
			<td>
			</tr>
			<tr>
			<td>Confirmar Password:</td> <td> {{form.password2}}</td>
			</tr>
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.first_name.errors }}
			<td>
			</tr>
			<tr>
			<td>Nombre:</td><td> {{form.first_name}}</td>
			</tr>
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.last_name.errors }}
			<td>
			</tr>
			<tr>
			<td>Apellido:</td><td>{{form.last_name}}</td>
			</tr>
			<tr>
			<td colspan="2" align="center">                                                             
				{{ form.email.errors }}
			<td>
			</tr>
			<tr>
			<td>Email:</td><td> {{form.email}}</td>
			</tr>
			<tr>
			<td><input type="submit" class="Crear" value="Crear"/></td>
			<td><input type="submit" onclick="Cancelaradmin(this.form)" class="Cancelar" value="Cancelar"/></td>
			
			</tr>
		</form>
	</table>
 {%endblock%}
 